package com.iursp.domain.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

@Entity
@NameStyle(Style.camelhump)  //驼峰转下划线 
public class BaseModel implements Serializable{
	
	private static final long serialVersionUID = 6454705290002422647L;
	
	@Id
    private String refid;
    //createUserRefid 创建者关联id
    private String createUserRefid;
	private String createDateTime;
    //modifyUserRefid 修改者关联id
    private String modifyUserRefid;
	private String modifyDateTime;
    //version 版本号
    private int version;
    //deleted 删除状态
    private Boolean deleted = Boolean.FALSE; 
    //排序字段名称
    @Transient
    private String sortName;
    //顺序：asc or desc
    @Transient
    private String sortOrder;

	public String getRefid() {
		return refid;
	}

	public void setRefid(String refid) {
		this.refid = refid;
	}

	public String getCreateUserRefid() {
		return createUserRefid;
	}

	public void setCreateUserRefid(String createUserRefid) {
		this.createUserRefid = createUserRefid;
	}

	public String getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(String createDateTime) {
		this.createDateTime = createDateTime;
	}

	public String getModifyUserRefid() {
		return modifyUserRefid;
	}

	public void setModifyUserRefid(String modifyUserRefid) {
		this.modifyUserRefid = modifyUserRefid;
	}

	public String getModifyDateTime() {
		return modifyDateTime;
	}

	public void setModifyDateTime(String modifyDateTime) {
		this.modifyDateTime = modifyDateTime;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public Boolean getDeleted() {
		return deleted;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public String getSortName() {
		return sortName;
	}

	public void setSortName(String sortName) {
		this.sortName = sortName;
	}

	public String getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	

}
